﻿using Domain.Entity.Config;
using Domain.Repository.IConfig;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.AppService.Config
{
    public class Config_file_third_kindAppService : IConfig_file_third_kindAppService
    {
        private readonly IConfig_file_third_kindRepository cftk;

        public Config_file_third_kindAppService(IConfig_file_third_kindRepository cftk)
        {
            this.cftk = cftk;
        }
        public Task<int> AddCFTKAsync(Config_file_third_kind config_File_Third_Kind)
        {
            return cftk.AddCFTKAsync(config_File_Third_Kind);
        }

        public Task<int> DeleteCFTKAsync(int id)
        {
            return cftk.DeleteCFTKAsync(id);
        }

       

        public Task<List<Config_file_third_kind>> GetCFTKAsyncById(string kid)
        {
            return cftk.GetCFTKAsyncById(kid);
        }
        public Task<int> UpdateCFTKAsync(Config_file_third_kind config_File_Third_Kind)
        {
            return cftk.UpdateCFTKAsync(config_File_Third_Kind);
        }

        Task<List<Config_file_third_kind>> IConfig_file_third_kindAppService.GetCFTKAsync()
        {
            return cftk.GetCFTKAsync();
        }
    }
}
